package com.hookoins.service;

import com.hookoins.dao.DemoMapper;
import com.hookoins.model.entity.DemoEntity;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * @author Yao
 * @date 2023/4/15
 */
@Service
@RequiredArgsConstructor
public class DemoService {
    private final DemoMapper demoMapper;

    public String queryTitle(String id) {
        return demoMapper.queryTitle(id);
    }
    public DemoEntity query(String id) {
        return demoMapper.query(id);
    }
}
